﻿<%@ Page Language="C#" MasterPageFile="~/Login.master" AutoEventWireup="true" CodeFile="ADFinance.aspx.cs" Inherits="ADFinance" Title="财务管理 - 我的广告 - G维网" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMainText" Runat="Server">
<div class="mainLeft">
<div class="mainLeftTop"></div>
<div class="mainLeftMiddle" style="position: relative">
        <form id="Form1" runat=server>
            <div class="bodytext" style="padding-left:24px;" align="justify">

            </div>
	        <div class="panel" align="justify">
		        <span class="orangetitle">财务管理</span>
		        <span class="bodytext"><br /><br />
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>"></asp:SqlDataSource>
                    </span>
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="SqlDataSource1"
                    Width="100%" CellPadding="3">
                    <Fields>
                        <asp:TemplateField HeaderText="帐户余额" SortExpression="RemainMoney">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("RemainMoney", "{0:c}") %>'></asp:Label>
                                &nbsp;&nbsp;<b><a href="ADPay.aspx">在线转账</a></b>
                            </ItemTemplate>
                            <HeaderStyle Width="80px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Cent" HeaderText="社区积分" SortExpression="Cent" />
                    </Fields>
                </asp:DetailsView>
                <asp:GridView ID="GridView1" runat="server" EmptyDataText="您还没有购买过广告。" Width="100%"  AutoGenerateColumns="False" DataSourceID="SqlDataSource2" BackColor="#F4F4F4" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="2px" CellPadding="3" Font-Size="13px">
                    <RowStyle ForeColor="#000066" />
                    <HeaderStyle BackColor="#889966" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                    <Columns>
                        <asp:BoundField DataField="AdInfo" HeaderText="广告说明" SortExpression="AdInfo" />
                        <asp:TemplateField HeaderText="展示次数" SortExpression="ShowCount">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ShowCount") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="总价(元)" SortExpression="Price">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="展示时间" SortExpression="StartDate">
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("StartDate", "{0:d}") +" 至 "+Eval("EndDate", "{0:d}") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
	        </div>
	    </form>
</div>
<div class="mainLeftBottom"></div> 
</div>
</asp:Content>